import http from "../utils/request.js";

// 获取评价汇总信息，
export function getHostCommentBase({
  splid
}) {
  return http.$post("splidComment/getUserComment", {
    splid,
  });
}

// 获取所欲评价用户评价列表
export function getHostCommentList({
  splid,
  currentPage,
  showCount
}) {
  return http.$post("splidComment/getCommentList", {
    splid,
    type: "3", //场次评价
    currentPage,
    showCount,
  });
}

// 获取海报二维码
export const getPosterQRcode = ({
  page,
  scene
}) => {
  return http.$post("newHuoDongHm/getSmallCodeMiao", {
    page,
    scene,
  });
};
// 删除评价信息，
export function deleteHostComment({
  splid,
  album_comment_id
}) {
  return http.$post("splidComment/editUserComment", {
    splid,
    album_comment_id
  });
}

// 获取打赏列表
export function getHostAwardList({
  splid,
  currentPage,
  showCount
}) {
  return http.$post("giftDetailsHm/rewardIncomeList", {
    splid,
    giftid: "reward", //
    currentPage,
    showCount,
  });
}

/**
 * 提现
 */
export function withDrawCommentMoney(splid) {

  return http.$post('newHuoDongHm/rewardTiXian', {
    splid: splid,
  }, null);
}

/**
 * 获取我的评论信息
 */
export function getMyComment({

}) {

  return http.$post('splidComment/getMyComment', {
  }, null);
}

/**
 * 获取我的评论列表
 */
export function getAllComments({
  showCount,
  currentPage,
  is_need_label = '0'
}) {

  return http.$post('splidComment/getMyCommentList', {
    type: '3',
    currentPage,
    showCount,
    is_need_label
  }, null);
}

/**
 * 添加我的评论 个人微信二维码
 */
export function addQrCode(comment_json) {

  return http.$post('host/personalInformation', {
   comment_json,
  }, null);
}
/**
 * 回复
 */
export function replyUser({
  album_comment_id,
  content,
  splid,
}) {

  return http.$post('splidComment/saveUserComment2', {
   type:'4',// 4 司仪   5 用户
   content,
   album_comment_id,
   splid
  }, null);
}

// 获取预定列表
export function getHostReserveList({
  splid
}) {
  return http.$post("schedule/getSplidScheduleList", {
    splid
  });
}
